// 统一接口管理
import requests from './request.js'

import mockRequests from './mockRequest.js'

// 请求三级联动列表数据
export const getBaseCategoryList = ()=>{
    return requests({
        url:"/product/getBaseCategoryList",
        method:"get"
    })
}
// 请求首页大的轮播图数据
export const reqBannerList =()=>{
    return mockRequests({ 
        url:"banners",
        method:'GET'
    })
}
// 请求首页小的轮播图数据
export const reqFloorsList = ()=>{
    return mockRequests({
        method:'get',
        url:"floors"
    })
}

// 请求Search页面的数据(api/list) - 需要携带参数
export const reqSearchInfo = (params)=>{
    return requests({
        method:"POST",
        url:"list",
        data:params
    })
}
